/**  
 * All rights Reserved, Designed By www.woniuxy.com
 * @Title:  Account.java   
 * @Package com.woniu.domain   
 * @Description:    Description  
 * @author: 蜗牛学院  
 * @date:   2019年10月16日 下午2:30:23
 * @user:   Administrator  
 * @version V1.0 
 * @Copyright: 2019 www.woniuxy.com Inc. All rights reserved. 
 * 注意：本内容仅限于成都蜗牛创想科技有限公司，禁止外泄以及用于其他的商业目
 */ 
package com.moon.testentity;

/**
 * @author Administrator
 *
 */
public class Teacher {
	private int id;
	private String tname;
	private Student stu;
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the tname
	 */
	public String getTname() {
		return tname;
	}
	/**
	 * @param tname the tname to set
	 */
	public void setTname(String tname) {
		this.tname = tname;
	}
	/**
	 * @return the stu
	 */
	public Student getStu() {
		return stu;
	}
	/**
	 * @param stu the stu to set
	 */
	public void setStu(Student stu) {
		this.stu = stu;
	}
	@Override
	public String toString() {
		return "Teacher [id=" + id + ", tname=" + tname + ", stu=" + stu + "]";
	}
	public Teacher(int id, String tname, Student stu) {
		super();
		this.id = id;
		this.tname = tname;
		this.stu = stu;
	}
	public Teacher() {
		super();
		// TODO Auto-generated constructor stub
	}
	
}
